<?php
	require_once 'LoginHandler.php';
    
    class AllTests{
    	public function DoTests(){
	    	$LG = new LoginHandler();
	    	$LG ->DoLogOut();
			
			if($LG ->isLoggedIn()){
				echo "You are already Logged in!";
				return false;
			}
			
			if($LG ->DoLogin($name = "intesebbe", $password = "intebra")){
				echo "You can login with wrong username and password";
				return false;
			}
			
			if(!$LG ->DoLogin($name = "sebbe", $password = "bra")){
				echo "You cant login with right username and password";
				return false;
			}
			
			if(!$LG ->isLoggedIn()){
				echo "You are Still not logged in!";
				return false;
			}
			
			$LG ->DoLogOut();
			
			if($LG ->DoLogin($name = "sebbe", $password = "intebra")){
				echo "You can login with wrong password";
				return false;
			}
			
			return true;
			
    	}
    }
?>